﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for BUS_Customers
/// </summary>
public class BUS_Customers
{
    DAL_Customers data = new DAL_Customers();
    public void Customers_Insert(DTO_Customers obj)
    {
        
        try
        {
            data.Customers_Insert(obj);
        }
        catch (Exception)
        {

            throw;
        }
       
    }
    public void Customers_UpdateByAll(string Id, DTO_Customers obj)
    {
       
        try
        {
            data.Customers_UpdateByAll(Id, obj);
        }
        catch (Exception)
        {

            throw;
        }
        
    }

    public void Customers_UpdateBySet(string Id, string Set)
    {
        
        try
        {
            data.Customers_UpdateBySet(Id, Set);
        }
        catch (Exception)
        {

            throw;
        }
       
    }
    public void Customers_Delete(string Id)
    {
        
        try
        {
            data.Customers_Delete(Id);
        }
        catch (Exception)
        {

            throw;
        }
        
    }

    public DataTable Customers_GetByAll()
    {
        DataTable dt = new DataTable();
        try
        {
           dt = data.Customers_GetByAll();

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
    public DataTable Customers_GetByTop(int top, string where, string order)
    {
        DataTable dt = new DataTable();
        try
        {
          dt =  data.Customers_GetByTop(top, where, order);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
    public DataTable Customers_GetByID(string id)
    {
        DataTable dt = new DataTable();
        try
        {
          dt =  data.Customers_GetByID(id);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
}